		<?php
			/**
			* The template for displaying the footer.
			*
			* Contains the closing of the id=main div and all content after
			*
			* @package WordPress
			* @subpackage Artience
			* @since Artience 1.0
			*/
		?>
		<div id="colophon"> </div>
		<footer role="contentinfo" style="color: #A9A9BF;">
			<!-- div id="ft_container" -->
			<div style="width: 1024px; margin: 0 auto;">
	
				<div class="box" style="height: 250px;">
					<div class="foot-nav">
						<div id="minisitemap" style="float: left;">
							<!-- ?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ? -->
							<div class="sitemap_section" style="width: 110px; float: left; padding-right: 15px; margin-top: 20px;">
								<h3 style="font-size: 17px; color: #4D4D4D; margin-bottom: 10px;"><a>Company</a></h3>
								<ul style="margin-left: 0;">
									<li style="font-size: 13px;"><a>Introduction</a></li>
									<li style="font-size: 13px;"><a>History</a></li>
									<li style="font-size: 13px;"><a>C.I.</a></li>
									<li style="font-size: 13px;"><a>Clients</a></li>
								</ul>
							</div>
							<div class="sitemap_srction" style="width: 140px; border-left: 1px dotted #C7C7C7;  border-right: 1px dotted #C7C7C7; float: left; padding-left: 25px; margin-top: 20px;">
								<h3 style="font-size: 17px; color: #4D4D4D; margin-bottom: 10px;"><a>Service</a></h3>
								<ul style="margin-left: 0;">
									<li style="font-size: 13px;"><a>SEO</a></li>
									<li style="font-size: 13px;"><a>SEM</a></li>
									<li style="font-size: 13px;"><a>Mobile</a></li>
									<li style="font-size: 13px;"><a>Social Media</a></li>
									<li style="font-size: 13px;"><a>Online News PR</a></li>
								</ul>
							</div>
							<div class="sitemap_section" style="float: right; padding: 35px 25px 0 25px;">
								<h3 style="font-size: 17px; color: #4D4D4D; text-align: center; padding-bottom: 20px;"><a>Portfolio</a></h3>
								<h3 style="font-size: 17px; color: #4D4D4D; text-align: center; padding: 20px 0; border-top: 1px dotted #C7C7C7; border-bottom: 1px dotted #C7C7C7;"><a>Contact Us</a></h3>
								<h3 style="font-size: 17px; color: #4D4D4D; text-align: center; padding-top: 20px;"><a>Blog</a></h3>
								<!-- p>Portfolio</p>
								<p>Contact Us</p>
								<p>Blog</p -->
							</div>
						</div>
						<div class="foot-nav" style="width: 225px; float: left; padding-left: 25px; background: url('http://localhost/wp/wp-content/themes/artience/images/footers/footer-vertical-bar.png') repeat-y left;padding-right: 0px;margin-right: 15px;">
							<ul class="foot-title"><li style="color: #4D4D4D; font-size: 18px;">Contact Us</li></ul>
							<p style="font-size: 13px;">
								서울시 마포구 서교동 402-6 마네빌딩 4층 (주) 아티언스
								<br><br>
								Email : artience@artience.co.kr<br>
								Phone : 02-3274-0210<br>
								FAX : 02-326-0208
							</p>
						</div>
						<div class="foot-nav" style="width: 240px; background: url('http://localhost/wp/wp-content/themes/artience/images/footers/footer-vertical-bar.png') repeat-y left;padding-left: 25px;">
							<ul class="foot-title"><li style="color: #4D4D4D; font-size: 18px;">Send To Message</li></ul>
							<form id="simpleContactUs" style="text-align: center;"> 
								<input type="text" id="messageName" name="mName" placeholder="Name" tabIndex="1"  style="margin-top: 7px; margin-bottom: 7px; width: 220px; height: 15px;">
								<input type="email" id="messageEmail" name="mEmail" placeholder="Email" tabIndex="2" style="margin-bottom: 7px; width: 220px; height: 15px;">
								<input type="text" id="messageSubject" name="mSubject" placeholder="Subject" tabIndex="3" style="margin-bottom: 7px; width: 220px; height: 15px;">
								<textarea id="message" name="mMessage" placeholder="message" tabIndex="4" style="margin-bottom: 7px; width: 220px;" rows="2"></textarea>
								<input type="submit" tabIndex="5" value="send">
							</form>
							<?php
								$mName = $_POST["mName"];
								$mEmail = $_POST["mEmail"];
								$mSubject = $_POST["mSubject"];
								$mMessage = $_POST["mMassage"];
								$mFrom = "From: ".$mName." <".$mEmail.">"."\r\n";
								$mTo = "artience@artience.co.kr,jkkim@artience.co.kr";
								
								$iHomepage = $_POST["iHomepage"];
								$iName = $_POST["iName"];
								$iPhone = $_POST["iPhone"];
								$iEmail = $_POST["iEmail"];
								$iTargetCountry = $_POST["iTargetCountry"];
								$iInquery = $_POST["iInquery"];
								
								if (strlen(trim(rtrim($mName))) > 0 
										&& strlen(trim(rtrim($mEmail))) > 0 
										&& strlen(trim(rtrim($mSubject))) > 0 
										&& strlen(trim(rtrim($mMessage))) > 0 
										&& strlen(trim(rtrim($mFrom))) > 0) {
									wp_mail($mTo, $mSubject, $mMessage, $mFrom);
								} else if (strlen(trim(rtrim($iHomepage))) > 0 
										&& strlen(trim(rtrim($iName))) > 0 
										&& strlen(trim(rtrim($iPhone))) > 0 
										&& strlen(trim(rtrim($iEmail))) > 0 
										&& strlen(trim(rtrim($iTargetCountry))) > 0
										&& strlen(trim(rtrim($iInquery))) > 0 ) {
									// wp_mail($mTo, $mSubject, $mMessage, $mFrom);	
								}
							?>
						</div>
					</div> <!-- .box -->
				</div>
				<div class="foot-copy" style="clear: both;">
					<img src="http://localhost/wp/wp-content/themes/artience/images/footers/artienoid.png" width="90px">
					<p>Copyright &copy; 2012 ARTIENCE All right reserved</p>
					<p>
						<span><a href="http://localhost/wp/?page_id=162">TERMS OF USE</a></span><span>&nbsp;|</span>
						<span><a href="http://localhost/wp/?page_id=166">CAREER</a></span><span>&nbsp;|</span>
						<span><a href="http://localhost/wp/?page_id=164">SITEMAP</a></span>
					</p>
				</div>
			</div>
			<div style="background-color: #000; text-align: center; padding: 10px 0;">
				<a href="#" style="margin: 0 15px;"><img src="http://localhost/wp/wp-content/themes/artience/images/headers/fb-icon.png"></a>
				<a href="#" style="margin: 0 15px;"><img src="http://localhost/wp/wp-content/themes/artience/images/headers/rss-icon.png"></a>
				<a href="#" style="margin: 0 15px;"><img src="http://localhost/wp/wp-content/themes/artience/images/headers/mail-icon.png">&nbsp;</a>
			</div>
		</footer><!-- #colophon -->
	</div><!-- #page -->
	
	
	<?php wp_footer(); ?>
	
	<script type="text/javascript">
		$(function () {
			$("#simpleContactUs").submit(function() {
			
				var messageName = $(this).children('input[id=messageName]').val();
				var messageEmail = $(this).children('input[id=messageEmail]').val();
				var messageSubject = $(this).children('input[id=messageSubject]').val();
				var message = $(this).children('textarea[id=message]').val();
				
				if (messageName && messageEmail && messageSubject && message) {
					alert("Seccess Send Mail...");
				} else {
					alert("Check Input Data...");
					return false;
				}
			});
			
			$("#inqueryForm").submit(function() {
				
				var iHomepage = $(this).children('input[id=inquery-homepage]').val();
				var iName = $(this).children('input[id=inquery-name]').val();
				var iPhone = $(this).children('input[id=inquery-phone]').val();
				var iEmail = $(this).children('input[id=inquery-email]').val();
				var iTargetCountry = $(this).children('input[id=inquery-targetCountry]').val();
				var iInquery = $(this).children('textarea[id=inquery-inquery]').val();
				
				if (iHomepage && iName && iPhone && iEmail && iTargetCountry && iInquery) {
					alert("Send Mail Seccess...");
				} else {
					alert("Check Input Data...");
				return false;
				}
			});
		});
	</script>
</body>
</html>